<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <style>
    html,body {
      background: #f1f1f1;
    }
    .top-box {
      width: 50px;
      height: 50px;
      background: #316ccb;
      margin: -10px;
    }
    .bottom-box {
      width: 50px;
      height: 50px;
      background: #407fe7;
      margin: -5px;
    }
    .letter1 {
      display: inline-block;
      background: #316ccb;
      letter-spacing: -2px;
    }
  </style>
</head>
<body>
  <div class="top-box">
    <div class="box-inner"></div>
  </div>
  <div class="bottom-box">
    <div class="box-inner"></div>
  </div>
  <div class="letter-box">
    <span class="letter1">342324342</span>
    <span class="letter1">32423423</span>
  </div>
  <div class="h5">
    <input type="email" name="points" min="1" max="10">
  </div>
  <script>
    function sort (arr) {
      var len = arr.length 
      for (var i = 0;i < len; i++) {
        for (var j = 0; j < len - 1-i;j++){
          if (arr[j]> arr[j+1]){
            var t = arr[j]
            arr[j] = arr[j+1]
            arr[j+1]=t
          }
        }
      }
      return arr
    }
    var a = [1,3,4,6,2,7,8]
   var b =  sort(a)
    console.log(b)
  </script>
</body>
</html>